<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

return [
    '__pattern__' => [
        'name' => '\w+',
    ],
    '[hello]'     => [
        ':id'   => ['index/hello', ['method' => 'get'], ['id' => '\d+']],
        ':name' => ['index/hello', ['method' => 'post']],
    ],
    //登陆页面跳转
    '/'=>'teacher/Login/login',
    //首页
    '/t/index'=>'teacher/Index/index',
    //教师登录路由
    't/do_login'=>'teacher/Login/do_login',
    //教师注销
    't/logout'=>'teacher/Login/logout',
    //验证码初始化
    't/captcha_init'=>['teacher/Captcha/init',['method'=>'get']],
    //验证码验证
    't/captcha_check'=>['teacher/Captcha/check',['method'=>'get']],

    //添加题目跳转
    't/addThesis'=>['teacher/AddThesis/addThesis',['method'=>'post']],
    //添加题目
    't/do_addThesis'=>['teacher/AddThesis/do_addThesis',['method'=>'post']],

    //题目列表
    't/thesisList'=>'teacher/ThesisList/thesisList',

    //审核列表
    't/reviewList'=>'teacher/ReviewList/reviewList',

    //题目详情跳转
    't/moreThesis'=>'teacher/MoreThesis/moreThesis',

    //添加建议跳转
    't/addSuggest'=>'teacher/AddSuggest/addSuggest',

    //添加建议跳转
    't/do_addSuggest'=>'teacher/AddSuggest/do_addSuggest',

    //授权码页跳转
    't/tisKey'=>'teacher/TisKey/tisKey',

    //授权码修改
    't/do_tisKey'=>'teacher/TisKey/do_tisKey',

    //管理员主页
    'a/'=>'admin/Config/config',


    //学生主页
    's/'=>'student/Login/login',

    //学生登陆
    's/do_login'=>'student/Login/do_login',

    //学生选题列表
    's/thesisList'=>'student/ThesisList/thesisList',

    //学生选题详情
    's/moreThesis'=>'student/MoreThesis/moreThesis',

    //学生选题
    's/selectThesis'=>'student/SelectThesis/selectThesis',
];
